home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
701-725
/
703
/
mpe
/
mpe.doc
< prev
next >
Wrap
Text File
|
1995-03-18
|
18KB
|
474 lines
*** Modula-2 Programming Environment Version 1.17 ***
© Copyright 1992 DigiSoft
written in Modula-2 version 4.0d by
Marcel Timmermans
DISCLAIMER
----------------------------------------------------------------------------
The author is NOT responsible for the suitability or accuracy of this
documentation and/or the program(s) it describes. Any damage sustained by
the use or misuse of this documentation and/or the program(s) it describes
is the responsibility of the user her/him self.
----------------------------------------------------------------------------
COPYRIGHT
----------------------------------------------------------------------------
MPE, © Copyright 1992 by DigiSoft. All rights reserved. This program may
be distributed non-commercially only providing that the documentation and
copyright notice remains intact and are included with the distribution.
This program is Public Domain so no financial donation is necessary.
----------------------------------------------------------------------------
INTRODUCTION
----------------------------------------------------------------------------
This is a program to make work easier for making a program with M2Amiga.
How many times you have typed m2c <program name>, if there is any error
m2emacs <program name>, m2c .. m2l etc. offcource you can use m2make but
than again you have to give all the switches you want to use ( no debug,
Minimum Arts etc.)
I have tried to make a program that supports all kinds of neccacery options
to build a program. I hope you like it.
Features:
o - Settings are kept by every project.
o - After an error during compiling an editor will be called
o - you can edit a report file for your program
o - you can set 'every' options for the M2Amiga V4.0 Compiler and Linker
o - Also you can use M2Make
o - You can run your program from MPE.
o - Creates an autoheader if you want it.
o - A special version with the use of Reqtools.library
o - You can load M2POOL from MPE
o - And the most important its FREE
REQUIREMENTS
----------------------------------------------------------------------------
MPE was programmed in M2Amiga V4.0d on an Amiga 3000 Kick 2.0 with 4 MB
memory and a 100MB harddisk but it should run on a standard 512 KB machine.
MPE ,about 70 KB, needed about 120 KB memory. However do you want a good use
you need at least 1.0 MB memory.
It's is tested on kickstart 1.2, 1.3 and 2.0. It's only tested with
M2Amiga V4.0, So i don't know if it works with earlier versions. If not
please let me know.
----------------------------------------------------------------------------
INSTALLATION
----------------------------------------------------------------------------
MPE should be working with all kickstarts verions.
At the moment you can't use MPE from the workbench at kickstart 1.2 / 1.3
if you want to use it from the WB then use IconX at kickstart 1.2 / 1.3
MPE is easy to install, just copy it to the directory m2:
When you run MPE at the first time you get a default setting choosed by
myself. But you can change you default setup and save it. By using the pull-
down menu settings - save default.
NOTE:
If you have settings saved with version 1.0 you can't use them anymore
because there is a lot changed in the settings file.
----------------------------------------------------------------------------
HOW TO USE
----------------------------------------------------------------------------
It's not very diffecult to use, but here is an explanation for the menus.
PROJECT MENU
----------------------------------------------------------------------------
This menu consists of the following items:
Load Project: <right Amiga P>
Function : Here you can load your direcory where the program is standing
witch you want to use. (f.e. DH0:M2/MPE do not choose the
subdir's txt, bin, obj, sym or txt. The program sees this by
it's self.
Load Main : <right Amiga ?>
Function : Here you can load your main program.
Load Module : <right Amiga O>
Function : Here you can load your module. If you don't have a module you
don't need to load something.
Resident :
Function : At the sub-items you can set M2C, M2L or/and M2Make resident.
This information shall also be saved to the config file.
At the end of the program i remove all the program's of
the resident list.
I do this with the command "resident", so it must exist.
About :
Function : Here you find the information about the program, author,
version etc.
Quit : <right Amiga Q>
Function : This item you need if you want to leave the program.
A requester ask's to save settings or quit or cancel.
You can also use a letter.
'Y' for quit
'M' for Save & Quit
'N' for Cancel
This is only if you use the standard version
Not for the version with reqtools.library
EDITOR MENU
----------------------------------------------------------------------------
This menu consists of the following items:
MP/MOD : <right Amiga E>
Function : When you choose this item an editor (the want you choose in
settings) will be started with the active file.
A File : <right Amiga />
Function : When you choose this item the program put an file requester
on the window and you can choose any file you want to edit.
A File : <right Amiga R>
Function : When you choose this item the program loads a report file
into the editor with the main module name.report.
Get *E : <right Amiga F>
Function : This item finds an error file produced by M2C. It's specialy
for when you choose build (M2make).
A file requester disappear on the screen and shows all the
file's which have an error. When you load this file it will
be automaticaly the Module file and or if it is the main
file the main file will be loaded.
Doc File :
Function : When you choose this item the program loads a <MainName>.DOC
file in the editor from the project directory.
COMPILER MENU
----------------------------------------------------------------------------
This menu consists of the following items:
MP/MOD : <right Amiga C>
Function : When you choose this item the program compiles the active file.
(main or module)
Options :
Function : In a sub item menu you can set your options for the M2Amiga
V4.0 compiler. At the last sub-item menu you can give your
own options.
LINKER MENU
----------------------------------------------------------------------------
This menu consists of the following items:
MP/MOD : <right Amiga L>
Function : When you choose this item the program links everything.
If the main file is changed it compiles first the main file.
If the second file or .def file is changed it compiles first
the second file. if every goes right than the linker will be
started. (Yust try to see )
NOTE : If the program has more sub modules THEY WON'T COMPILE IF
THEY ARE CHANGED THEREFOR YOU NEED TO CHOOSE MAKE.
Options :
Function : In a sub item menu you can set your options for the M2Amiga
V4.0 linker. At the last sub-item menu you can give your own
options.
RUN MENU
----------------------------------------------------------------------------
This menu consists of the following items:
Go Main : <right Amiga G>
Function : When you choose this item the program compile if nessecery,
linked everything together end run the program.
Argument : <right Amiga A>
Function : In this item you can give your arguments
SETTINGS MENU
----------------------------------------------------------------------------
This menu consists of the following items:
Change Ext. : <right Amiga M> and <right Amiga D>
Function : In the sub-items you can choose between a .mod file or a .def
file.
Workfile : <right Amiga 1> and <right Amiga 2>
Function : In the sub-items you can choose between the main file and
secondfile for making active.
Change
Settings :
Function : After choosing this item you get a requester wher you can
change your default editor, usermenus.
Furhter you can set the following options on or off:
- Debugger (Must M2Debug loaded or not )
- Create a new Default File
( When you type a filename in the filerequester, when
your load a module or main program, which doesn't exist
MPE creates the filename with a default text like:
MODULE <Name>.MOD
BEGIN
CLOSE
END <Name>.
When you choose the a module the program makes a '.mod'
and a '.def' file.
You can switch this option on or off.
)
- Change CONST AutoVersion
( When there is a header created, and only then, AutoVersion
can be changed to the latest version.
You must use something like this
CONST AutoVersion = '1.0'; CONST AutoVersion = "1.0";
The text is case depended, so if you use AUTOVERSION the
program don't find the CONST.
Also you must use a text Constant, NOT AutoVersion = 1.0;
So you choose the menuitem CreateHeader then the program
creates a header for you if it doesn't exist.
if the header exist the program asks you for the update
text and for a version number.
This version number coms in the constant AutoVersion.
So it's only usable when a header was created.
You can switch this option on or off.
)
- Make Backup File
( When the program creates a header, you can make a backup
called <Name>.BK!. This for when something goes wrong.
I don't hope so.
So i'am not responsible when your source file is broken.
Please Switch this on.
If your use the program a long time and it never failed
at this item, you can switch it off.
If anything goes wrong, please let me now.
)
- M2Pool loaded at start
( When you select this item M2pool shall be loaded )
Load
Settings : <right Amiga ->
Function : Here you can load your project settings.
Save
Settings : <right Amiga +>
Function : Here you can save your project settings.
Save
Default :
Function : Here you can save your default settings.
This contains: - Compiler, Linker and M2Make options
- Sort editor
- User Menu
- Debugger On/Off
- Create a new default file On/Off
- Change CONST 'AutoVersion' On/Off
- Create backup file bu AutoHeader On/Off
- Rsident options
NOTE : The main and second file name shall not be saved.
SPECIAL MENU (* Oohps I forgot this at the first release and there was a
mayor bug in it. Sorry ! *)
----------------------------------------------------------------------------
This menu consists of the following items:
Shell : <right Amiga S>
Function : Here you can start the Command Line Interface.
This menu item executes 'NewShell', so it must exist. and
the program must find it. Otherwhise it will not executed.
User 1 : <right Amiga !>
Function : Here the program execute your file out the Setting Menu.
You can use something like 'C:list bin/' or whatever you want.
User 2 : <right Amiga @>
Function : Here the program execute your file out the Setting Menu.
User 3 : <right Amiga #>
Function : Here the program execute your file out the Setting Menu.
Execute : <right Amiga X>
Function : At this item the program ask you with a StringRequester
what you want to execute.
InfoHeader : <right Amiga I>
Function : Here you can fill in your default header info.
This mean when you creates your first header.
The name is depended from the active file.
CreateHeader: <right Amiga H>
Function : This item creates the header at the active file.
If the header exists a few things happend.
- A requester asks for the new version number.
- A requester asks for the update string.
- When AutoVersion is on the version number in the
Constance 'AutoVersion' shall be changed.
If CONST AutoVersion = '1.0' And you fill in the
string requester 1.1 then you get
CONST AutoVersion = '1.1'.
By the way if you use (*# AutoHeader:=FALSE *)
Please put this in the top of your file
the program doesn't create a header file.
You must use '(*#', '#' stands for MPE options.
Example Header (like idea from Jan van der Baard, Thanks Jan )
(*#-- BEGIN AutoRevision header, please do NOT edit!
*
* Program : MPE.mod
* Copyright : 1992 ©, DigiSoft
* Author : Marcel Timmermans
* Address : Holthuizerdreef 13, 6852 JH HUISSEN, HOLLAND
* Creation Date : 21-12-1991
* Current version : 1.06
* Translator : M2Amiga 4.0d
*
* REVISION HISTORY
*
* Date Version Comment
* --------- ------- ------------------------------------------
* 25-04-1992 0.8 First test Option
* 05-05-1992 0.9 Changed requesters, Compile generator
* 09-05-1992 1.0 First Release
* 23-05-1992 1.01 Changed mayor bug in run program
* 23-05-1992 1.02 Added AutoRevision Header
* 23-05-1992 1.03 Change Settings window with more options
* 26-05-1992 1.05 Make a headerparser and changed settings
* 27-05-1992 1.06 Changed create default write for files
*
*-- END AutoRevision header --*)
I hope your like it.
So you know the menus and now you can load your project, main module, second
module, compiling, linking , building etc.
----------------------------------------------------------------------------
KNOWN BUGS
----------------------------------------------------------------------------
o - Input and output for a running program works not good.
( I don't now how to change this)
o - When sizing the window at KickStart 1.2 and 1.3 the text doesn't scroll
in the window anymore, this is not always but sometimes.
I don't know why.
----------------------------------------------------------------------------
FUTURE CHANGES
----------------------------------------------------------------------------
o Remove the bug's offcource
o Also started from Wb at all versions of kickstart.
o Running M2Project from MPE.
o Making compatibler so that you can also use it for oberon.
If you have more suggestions, please let me know.
-REVSION HISTORY-
****************************************************************************
*
* REVISION HISTORY
*
* Date Version Comment
* --------- ------- ------------------------------------------
* 25-04-1992 0.8 First test Option
* 05-05-1992 0.9 Changed requesters, Compile generator
* 09-05-1992 1.0 First Release
* 23-05-1992 1.01 Changed mayor bug in run program
* 23-05-1992 1.02 Added AutoRevision Header
* 23-05-1992 1.03 Change Settings window with more options
* 26-05-1992 1.05 Make a headerparser and changed settings
* 27-05-1992 1.06 Changed create default write for files
* 28-05-1992 1.07 Optimized some routines
* 28-05-1992 1.08 added resident options
* 28-05-1992 1.09 Added .doc optie by editor
* 30-05-1992 1.10 Remove lock bug, free one lock to much
* 31-05-1992 1.11 Remove Ref opt., changed options routine
* 07-06-1992 1.12 Remove Mayor bug from LoadSettings
* Remove some bug's for A3000 use
* 08-06-1992 1.13 Changed some minor bugs in Settings
* 13-06-1992 1.14 Added Reqtools library options
* 15-06-1992 1.15 Added some error routines
* 25-06-1992 1.16 Added m2pool option
* 01-07-1992 1.17 Changed routine QuitM2pool
The author,
My english is not very good, so i hope you will accept my bad writing.
If you find bugs, or you have ideas to make the program more user-friendly,
please report to me at the following address:
Marcel Timmermans
Holthuizerdreef 13
6852 JH, Huissen (gld)
Holland.
Please, if you like (or don't) the program or you make use of it let me now.
Greeting's to
- Fridtjof Siebert
- Jan van den Baard
- Dr. Maybe
- Lars Van Jeurissen
- A+LAG for M2Amiga.
- Fred Fish for his great job.